package com.szpx.entity;


import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "news")
public class NewsShow {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    private String title="";
    private String content="";
    private String author="";

    private Data publishDate;

    @Override
    public String toString() {
        return "NewsShow{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", author='" + author + '\'' +
                ", publishDate='" + publishDate + '\'' +

                '}';
    }

    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }
    public Data  getPublishdate(){ return publishDate;}
    public void setPublishDate(){ this.publishDate=publishDate;}


}
